package com.zz.admin.demo.dateConvertDemo;

import com.zz.common.utils.convert.LocalDateTimeUtil;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class DateConvertTest {

    public void dateConvert() {
        LocalDateTime now = LocalDateTimeUtil.now();
        System.out.println(now);

        String s = LocalDateTimeUtil.convertLocalDateTimeToStr(now, LocalDateTimeUtil.defaultDateTimeFormat);
        System.out.println(s);
    }

    public String getSomeStr(String str) {
        return "zl";
    }

}
